home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / tcl / tclm_1_0.lha / tclm-1.0 / tclm.h < prev    next >
C/C++ Source or Header  |  1993-08-16  |  3KB  |  72 lines

  1. /*-
  2.  * Copyright (c) 1993 Michael B. Durian.  All rights reserved.
  3.  *
  4.  * Redistribution and use in source and binary forms, with or without
  5.  * modification, are permitted provided that the following conditions
  6.  * are met:
  7.  * 1. Redistributions of source code must retain the above copyright
  8.  *    notice, this list of conditions and the following disclaimer.
  9.  * 2. Redistributions in binary form must reproduce the above copyright
  10.  *    notice, this list of conditions and the following disclaimer in the
  11.  *    documentation and/or other materials provided with the distribution.
  12.  * 3. All advertising materials mentioning features or use of this software
  13.  *    must display the following acknowledgement:
  14.  *    This product includes software developed by Michael B. Durian.
  15.  * 4. The name of the the Author may be used to endorse or promote 
  16.  *    products derived from this software without specific prior written 
  17.  *    permission.
  18.  *
  19.  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED 
  20.  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  21.  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  
  22.  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
  23.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  24.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  25.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  26.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  27.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  28.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  29.  * SUCH DAMAGE.
  30.  */
  31. /*
  32.  * tclm.h,v 1.7 1993/05/06 02:51:12 durian Exp
  33.  */
  34. #ifndef TCLM_H
  35. #define TCLM_H
  36. typedef struct {
  37.     HCHUNK    hchunk;
  38.     TCHUNK    *tchunks;
  39. } MIDI_FILE;
  40.  
  41. #define MAX_EVENT_SIZE 256
  42.  
  43. extern int Tclm_MidiConfig _ANSI_ARGS_((ClientData, Tcl_Interp *, int,
  44.     char **));
  45. extern int Tclm_Division _ANSI_ARGS_((Tcl_Interp *, int, char **));
  46. extern int Tclm_MidiFixToVar _ANSI_ARGS_((ClientData, Tcl_Interp *, int,
  47.     char **));
  48. extern int Tclm_Format _ANSI_ARGS_((Tcl_Interp *, int, char **));
  49. extern int Tclm_MidiFree _ANSI_ARGS_((ClientData, Tcl_Interp *, int, char **));
  50. extern int Tclm_MidiGet _ANSI_ARGS_((ClientData, Tcl_Interp *, int, char **));
  51. extern int Tclm_MidiPut _ANSI_ARGS_((ClientData, Tcl_Interp *, int, char **));
  52. extern int Tclm_GetMFile _ANSI_ARGS_((Tcl_Interp *, char *, MIDI_FILE **));
  53. extern void Tclm_InitMidi _ANSI_ARGS_((Tcl_Interp *));
  54. extern int Tclm_MidiMake _ANSI_ARGS_((ClientData, Tcl_Interp *, int, char **));
  55. extern int Tclm_MidiMerge _ANSI_ARGS_((ClientData, Tcl_Interp *, int, char **));
  56. extern int Tclm_NumTracks _ANSI_ARGS_((Tcl_Interp *, int, char **));
  57. extern int Tclm_MidiRead _ANSI_ARGS_((ClientData, Tcl_Interp *, int, char **));
  58. extern int Tclm_MidiRewind _ANSI_ARGS_((ClientData, Tcl_Interp *, int,
  59.     char **));
  60. extern int Tclm_SetMFile _ANSI_ARGS_((Tcl_Interp *, char *, MIDI_FILE *));
  61. extern int Tclm_MidiTiming _ANSI_ARGS_((ClientData, Tcl_Interp *, int,
  62.     char **));
  63. extern int Tclm_MidiVarToFix _ANSI_ARGS_((ClientData, Tcl_Interp *, int,
  64.     char **));
  65. extern int Tclm_MidiWrite _ANSI_ARGS_((ClientData, Tcl_Interp *, int,
  66.     char **));
  67. extern int Tclm_MidiPlayable _ANSI_ARGS_((ClientData, Tcl_Interp *, int,
  68.     char **));
  69. extern int Tclm_TclmVersion _ANSI_ARGS_((ClientData, Tcl_Interp *, int,
  70.     char **));
  71. #endif
  72.